home *** CD-ROM | disk | FTP | other *** search
-
- WorldTime v2.1
-
- © Copyright 1992 Jonathan Potter
-
- This program is freely distributable.
-
- -------------------------------------------------------------------------------
-
- This is a completely rewritten version of WorldTime. For those not familiar
- with the program, it can show you the time in any city in the world. The
- times are calculated automatically using data supplied by the user.
-
- WorldTime 2 has been rewritten to take advantages of features available
- under Kickstart 2, and thus will not run under 1.2 or 1.3 anymore. If you
- haven't upgraded yet, do so, as you are missing out on many wonderful things
- (WorldTime 2 amongst them :-)
-
- WorldTime can be run from the CLI or the Workbench (including the WBStartup
- drawer) successfully. If run from the CLI, it detaches automatically so
- you do not need RUN.
-
- WorldTime runs as a commodity, and can be hidden and popped up using a
- defined hotkey. It takes its arguments via ToolTypes in its icon or from the
- CLI line. These arguments are :
-
- CX_POPKEY=<hotkey> - The hotkey string to use.
- default : lalt ralt w
- CX_POPUP=<yes|no> - Whether to open straight away when run.
- default : yes
- CX_PRIORITY=<priority> - Commodity priority
- default : 0
-
- LARGEWINDOW=<x>/<y>/<w>/<h> - "Large" window dimensions
- default : 20/10/400/220
- LOCALCITY=<local city> - Your local city
- default : GMT
- LOCALSUMMERTIME=<start>,<end> - Dates that local summer time begin and end.
- default : no summer time
- LOCALTIME=<local time zone> - Your local timezone (relative to GMT)
- default : 0
- SHOWCITY=<city> - City to display initially
- default : first in the list
- ZONEDATAFILE=<date filename> - File to read time zone data from
- default : WorldTime.dat
- ZOOMWINDOW=<x>/<y>/<w>/<h> - "Zoom" window dimensions
- default : 20/10/300/0
-
- CX_POPKEY, CX_POPUP and CX_PRIORITY are all standard commodities arguments.
-
- LARGEWINDOW and ZOOMWINDOW allow you to specify the dimensions of the
- window in both its normal (LARGE) and zoomed (ZOOM) state (the zoomed state
- is entered by selecting the Zoom gadget in the window's title bar). These are
- given in the form <left edge>/<top edge>/<width>/<height>. Illegal dimensions
- will be adjusted automatically.
-
- LOCALCITY and LOCALTIME are used to specify your locality. LOCALCITY is a
- string representing the name of your location (eg Adelaide). LOCALTIME gives
- your locality's time relative to GMT. This is vital information, as this is
- used to calculate the times for all the other cities. For example, 9.5
- indicates that your locality is nine and a half hours ahead of GMT. -10
- indicates you are ten hours behind.
-
- LOCALSUMMERTIME allows you to specify when your locality experiences
- summer time (daylight savings). This is given as two dates, giving the
- beginning and the end of summer time (for example, 1-Jun,31-Aug). When
- WorldTime sees that the current date is within this range, it automatically
- adds an hour to your GMT offset. This saves you having to adjust the LOCALTIME
- parameter whenever summer time begins or ends.
-
- SHOWCITY allows you to initially display a given city. If given, this will
- be positioned at the top of the viewable list. If not, the list will begin
- at the top. For example, SHOWCITY=Dallas will begin by displaying Dallas at
- the top of the list.
-
- ZONEDATAFILE lets you specify the path and filename of the data file. This
- file contains a list of all the cities and their GMT offsets. The default is
- WorldTime.dat (in the current directory). For example,
- ZONEDATAFILE=s:times.dat will load the data from s:times.dat.
-
- The data file contains a list, one on each line, of all the cities and
- their GMT offsets. You may add as many cities to the file as you wish.
- For instance,
-
- Adelaide,9.5
- Algiers,0
- Barbados,-4
-
- This indicates that Adelaide is +9.5 hours from GMT. Algiers is on GMT, and
- Barbados is -4 hours from GMT.
-
- You can also specify summer time dates for each city in the list. For
- example,
-
- Adelaide,9.5,1-Nov,28-Feb
-
- This indicates that daylight savings begins in Adelaide on the first of
- November, and ends on the twenty-eighth of February. Note that leap years
- are not supported in these calculations, so during a leap year WorldTime
- may start or stop summer time one day early (or late). You should also
- not specify 29-Feb as either the starting or ending date. When WorldTime
- sees that a city is in daylight savings mode, it automatically moves its
- clock forward one hour.
-
- WorldTime displays the times in a ListView in a window opened on the
- default public screen (normally Workbench). You can scroll through the
- times using the arrows or the slider gadget. Underneath the times list
- the current local time is displayed. This is updated every second, and
- the times list is updated every minute.
-
- If a time has a + sign in front of it, it indicates that the time is
- in tomorrow (relative to your current time). If it has a - sign in front of
- it, it indicates that the time is in yesterday.
-
- If you press any letter on the keyboard, the time list will jump to display
- the first city that begins with that letter. Under Kickstart 39 and greater,
- you can use the cursor keys to move up and down the list.
-
- To hide WorldTime, you can either click the close gadget on the WorldTime
- window, select Hide from the menu or use the Commodities Exchange controller
- program.
-
- If WorldTime is hidden (either by you having hidden it or running it with
- CX_POPUP=no), you can make it appear by either hitting the hotkey or using
- the Commodities Exchange controller. The hotkey defaults to "lalt ralt w",
- meaning both ALT keys held down and W pressed. This can be changed with the
- CX_HOTKEY argument.
-
- To quit WorldTime, either use the Remove command in the Exchange controller
- or select Quit from the WorldTime menu.
-
- -------------------------------------------------------------------------------
-
- Revision history :
-
- WorldTime 1.0 -> 1.3 :
-
- First versions of WorldTime. Were not font-sensitive (this was the
- biggest complaint about them). Were also limited to 84 entries.
- Did not support daylight savings.
-
- WorldTime 2.0 :
-
- Completely rewritten for 2.0. Fully font-sensitive. Allows unlimited
- entries, and supports summer time for each entry. This version was
- never widely released.
-
- WorldTime 2.1 :
-
- Fixed a few minor bugs in 2.0, and added keyboard support (any key to
- jump to first city starting with that letter, and cursor key
- support under 39). First public release of version 2.
-
- -------------------------------------------------------------------------------
-
- Future additions planned :
-
- Multiple, time-zone specific alarms
- (so you will be able to, for instance, have an alarm
- sound when it is 10:30 am in London)
-
- Locale support (world map?)
-
- -------------------------------------------------------------------------------
-
- WorldTime was written with SAS/C 5.10b, by Jonathan Potter. It is freely
- distributable, but NOT public domain, and may NOT be sold for profit. It
- may also NOT be included on magazine cover disks without the permission of
- the author. Any (particularly English) magazines wishing to use this
- program MUST contact me first!!!
-
- If you like WorldTime, why not send a donation to encourage the author
- to devote more time to freely distributable utilities.
-
- Address author correspondance to :
-
- Jonathan Potter
- P.O. Box 289
- Goodwood, SA 5034
- Australia
-
- ph : 61-8-2932788
- FAX : 61-8-2938941
- FidoNET : 3:800/805
- Internet : jpotter@itd.adelaide.edu.au
- CompuServe : 100033,220
-